package com.qipay.sp.excutor.yitong;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import org.springframework.stereotype.Component;

@Component
public class YtFactory implements ExcutorFactory {

    @Override
    public AbstractExcutor createWxTradeQueryExcutor() {
        return (YtWxTradeQueryExcutor) SpringContextUtil.getBean(YtWxTradeQueryExcutor.class);
    }

    @Override
    public AbstractExcutor createWxWapPayExcutor() {
        return (YtWxWapExcutor) SpringContextUtil.getBean(YtWxWapExcutor.class);
    }

    @Override
    public AbstractExcutor createWxNativeExcutor() {
        return (YtWxNativeExcutor) SpringContextUtil.getBean(YtWxNativeExcutor.class);
    }

    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (YtAlipayWapExcutor) SpringContextUtil.getBean(YtAlipayWapExcutor.class);
    };
}
